package net.zjitc.myqueue;


import net.zjitc.myqueue.exception.MyQuException;

/**
 * Created by Administrator on 2017/3/30.
 */
/**/
public interface MyQu<E> {
    //元素入队列：add(E item)
    public void add(E item) throws MyQuException; //尾部

    //元素出队列： E remove()
     public E remove() throws MyQuException;   //头部

    //查看队头的元素
    public E get();

    //队列的元素有多少个
    public int size();

    //队列是空？
    public boolean isEmpty();

    //队列是满的吗？
    public boolean isFull();

}
